const Koa = require('koa2')
const cors = require('koa2-cors')
const router = require('./router')
const app = new Koa;

app
  .use(cors())
  .use(router.routes())
  .use(router.allowedMethods())

app.listen(3555, () => {
  console.log('server start, port: ', 3555);
})